//在这一层将modules下面的state归一
const getters = {
    userName: state => state.user.userName,
    roles: state => state.user.roles,
    avatar: state => state.user.avatar,
    constRouter: state => state.permission.constRouter
}
export default getters